[#include "../common/taglibs.html"/]
<div class="modal-header">
	<button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
	<h4 class="modal-title">[@spring.message code="companybankcard.update.title"/]</h4>
</div>

<div class="modal-control">
	[@form.form commandName="updateDTO" method="POST" class="form-horizontal form"]
	<input type="hidden" name="format" value="json">
	<div class="modal-body">
		<div class="form-body">
			
			<div class="form-group">
				<label class="col-md-3 control-label">[@spring.message code="companybankcard.update.form.label.bankName"/]</label>
				<div class="col-md-9">
					[@spring.bind path="bankName"]
					<select id="${status.expression}" name="${status.expression}" class="bs-select form-control">
						[#list bankList as item]
						<option value="${item.name}" [#if item.name==status.value]selected="selected"[/#if]>
							${item.name}
						</option>
						[/#list]
					</select>
					[/@spring.bind]
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-3 control-label">[@spring.message code="companybankcard.update.form.label.branchName"/]</label>
				<div class="col-md-9">
					[@spring.bind path="branchName"]
					<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
					[/@spring.bind]
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-3 control-label">[@spring.message code="companybankcard.update.form.label.accountName"/]</label>
				<div class="col-md-9">
					[@spring.bind path="accountName"]
					<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
					[/@spring.bind]
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-3 control-label">[@spring.message code="companybankcard.update.form.label.accountNo"/]</label>
				<div class="col-md-9">
					[@spring.bind path="accountNo"]
					<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
					[/@spring.bind]
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-3 control-label">[@spring.message code="companybankcard.update.form.label.accountEmail"/]</label>
				<div class="col-md-9">
					[@spring.bind path="accountEmail"]
					<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
					[/@spring.bind]
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-3 control-label">[@spring.message code="companybankcard.update.form.label.rechargeAccountType"/]</label>
				<div class="col-md-9">
					<div class="btn-group" data-toggle="buttons">
						[@spring.bind path="rechargeAccountType"]
						[#list enums["net.lanelife.casino.caipiao.entity.CompanyBankCard$RechargeAccountType"]?values as item]
						<label class="btn btn-default[#if item==status.value] active[/#if]">
							<input name="${status.expression}" value="${item.name()}" [#if item==status.value]checked="checked"[/#if] type="radio" class="toggle">
							[@spring.message code="net.lanelife.casino.caipiao.entity.CompanyBankCard.RechargeAccountType."+item.name()/]
						</label>
						[/#list]
						[/@spring.bind]
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-3 control-label">[@spring.message code="companybankcard.update.form.label.currentBalance"/]</label>
				<div class="col-md-9">
					[@spring.bind path="currentBalance"]
					<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
					[/@spring.bind]
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-3 control-label">[@spring.message code="companybankcard.update.form.label.warningAmount"/]</label>
				<div class="col-md-9">
					[@spring.bind path="warningAmount"]
					<input id="${status.expression}" name="${status.expression}" value="${status.value!}" type="text" class="form-control">
					[/@spring.bind]
				</div>
			</div>
			<div class="form-group">
				<label class="col-md-3 control-label">[@spring.message code="companybankcard.update.form.label.usesType"/]</label>
				<div class="col-md-9">
					<div class="btn-group" data-toggle="buttons">
						[@spring.bind path="usesType"]
						[#list enums["net.lanelife.casino.caipiao.entity.CompanyBankCard$UsesType"]?values as item]
						<label class="btn btn-default[#if item==status.value] active[/#if]">
							<input name="${status.expression}" value="${item.name()}" [#if item==status.value]checked="checked"[/#if] type="radio" class="toggle">
							[@spring.message code="net.lanelife.casino.caipiao.entity.CompanyBankCard.UsesType."+item.name()/]
						</label>
						[/#list]
						[/@spring.bind]
					</div>
				</div>
			</div>
			
		</div>
	</div>
	<div class="modal-footer">
		<button type="button" class="btn default" data-dismiss="modal">[@spring.message code="form.button.close"/]</button>
		<button type="submit" class="btn blue">[@spring.message code="form.button.submit"/]</button>
	</div>
	[/@form.form]
</div>

<script type="text/javascript">

$('#updateDTO').validate({
	rules: {
  	},
	messages:{
	}
});

</script>